package com.mgm.dao;

import com.mgm.pojo.Affiliate;
import com.mgm.pojo.AffiliateExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AffiliateMapper {
	long countByExample(AffiliateExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Affiliate record);

    int insertSelective(Affiliate record);

    List<Affiliate> selectByExample(AffiliateExample example);

    Affiliate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Affiliate record);

    int updateByPrimaryKey(Affiliate record);
    
    List<String> selectAffIds();
    
    Affiliate selectByAffIdAndToken(@Param("affId")String affId, @Param("token")String token);
    
}